﻿using System.Threading.Tasks;
using K9Nano.MultiTenancy;

namespace EFCoreTest
{
    public class NullTenantStore: ITenantStore
    {
        public TenantInfo Find(int tenantId)
        {
           return new TenantInfo(1, "test");
        }

        public TenantInfo Find(string tenancyName)
        {
            return new TenantInfo(1, "test");
        }

        public ValueTask<TenantInfo> FindAsync(int tenantId)
        {
            return new ValueTask<TenantInfo>(Find(tenantId));
        }

        public ValueTask<TenantInfo> FindAsync(string tenancyName)
        {
            return new ValueTask<TenantInfo>(Find(tenancyName));
        }
    }
}